﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lBll
{
    public interface lKliporBll
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="klipoerty">表名</param>
        /// <returns>返回受影响行数</returns>
        Task<int> KAdd(Klipoerty klipoerty);

        /// <summary>
        /// 显示查询分页
        /// </summary>
        /// <param name="name">项目名称模糊查询</param>
        /// <param name="index">页数</param>
        /// <param name="size">条数</param>
        /// <returns>通过条件查询进行分页和显示</returns>
        dynamic KShow(string? name, int index, int size);

        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>通过主键id进行逻辑删除</returns>
        Task<int> Delete(int id);

        /// <summary>
        /// 批量修改状态
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>通过主键id进行批量修改</returns>
        Task<int> UpdState(string idstring);

        /// <summary>
        /// 导出
        /// </summary>
        /// <returns>返回受影响行数</returns>
        List<Klipoerty> DaoChu();
    }
}
